# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoring do
  @moduledoc """
  Represents the data monitoring section of the report.

  ## Attributes

  *   `dataTypes` (*type:* `list(GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringDataTypeResult.t)`, *default:* `nil`) - Data types that your app shares or collects.
  *   `endpoints` (*type:* `list(GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringEndpointResult.t)`, *default:* `nil`) - Endpoints that were found by dynamic analysis of your app.
  *   `permissions` (*type:* `list(GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringPermissionResult.t)`, *default:* `nil`) - Permissions that your app uses.
  *   `sdks` (*type:* `list(GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringSdkResult.t)`, *default:* `nil`) - SDKs that your app uses.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :dataTypes =>
            list(
              GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringDataTypeResult.t()
            )
            | nil,
          :endpoints =>
            list(
              GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringEndpointResult.t()
            )
            | nil,
          :permissions =>
            list(
              GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringPermissionResult.t()
            )
            | nil,
          :sdks =>
            list(
              GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringSdkResult.t()
            )
            | nil
        }

  field(:dataTypes,
    as: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringDataTypeResult,
    type: :list
  )

  field(:endpoints,
    as: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringEndpointResult,
    type: :list
  )

  field(:permissions,
    as: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringPermissionResult,
    type: :list
  )

  field(:sdks,
    as: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoringSdkResult,
    type: :list
  )
end

defimpl Poison.Decoder,
  for: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoring do
  def decode(value, options) do
    GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoring.decode(value, options)
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoring do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
